package cn.stylefeng.guns.modular.kh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 提总分拣单
 * </p>
 *
 * @author zzh
 * @since 2025-10-23
 */
@TableName("kh_tz_storage_order")
public class KhTzStorageOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 单号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 单据状态
     */
    @TableField("order_state")
    private String orderState;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 是否拆零
     */
    @TableField("dismantling_parts")
    private String dismantlingParts;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 换算率
     */
    @TableField("rate")
    private BigDecimal rate;

    /**
     * 数量
     */
    @TableField("ps_num")
    private BigDecimal psNum;

    /**
     * 基本数量
     */
    @TableField("jiben_num")
    private BigDecimal jibenNum;

    /**
     * 发货仓库id
     */
    @TableField("set_warehouse_id")
    private Long setWarehouseId;

    /**
     * 发货仓库
     */
    @TableField("set_warehouse")
    private String setWarehouse;

    /**
     * 创建人
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 完成时间
     */
    @TableField("completed_time")
    private Date completedTime;

    /**
     * 分拣员
     */
    @TableField("storage_user_name")
    private String storageUserName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public String getOrderState() {
        return orderState;
    }

    public void setOrderState(String orderState) {
        this.orderState = orderState;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public String getDismantlingParts() {
        return dismantlingParts;
    }

    public void setDismantlingParts(String dismantlingParts) {
        this.dismantlingParts = dismantlingParts;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    public BigDecimal getPsNum() {
        return psNum;
    }

    public void setPsNum(BigDecimal psNum) {
        this.psNum = psNum;
    }

    public BigDecimal getJibenNum() {
        return jibenNum;
    }

    public void setJibenNum(BigDecimal jibenNum) {
        this.jibenNum = jibenNum;
    }

    public Long getSetWarehouseId() {
        return setWarehouseId;
    }

    public void setSetWarehouseId(Long setWarehouseId) {
        this.setWarehouseId = setWarehouseId;
    }

    public String getSetWarehouse() {
        return setWarehouse;
    }

    public void setSetWarehouse(String setWarehouse) {
        this.setWarehouse = setWarehouse;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCompletedTime() {
        return completedTime;
    }

    public void setCompletedTime(Date completedTime) {
        this.completedTime = completedTime;
    }

    public String getStorageUserName() {
        return storageUserName;
    }

    public void setStorageUserName(String storageUserName) {
        this.storageUserName = storageUserName;
    }

    @Override
    public String toString() {
        return "KhTzStorageOrder{" +
        "id=" + id +
        ", orderNumber=" + orderNumber +
        ", orderState=" + orderState +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", dismantlingParts=" + dismantlingParts +
        ", unit=" + unit +
        ", rate=" + rate +
        ", psNum=" + psNum +
        ", jibenNum=" + jibenNum +
        ", setWarehouseId=" + setWarehouseId +
        ", setWarehouse=" + setWarehouse +
        ", createUserName=" + createUserName +
        ", createTime=" + createTime +
        ", completedTime=" + completedTime +
        ", storageUserName=" + storageUserName +
        "}";
    }
}
